package com.blog.constant;

import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wmb
 *
 * @since 2021-2-7
 */
@Component
public class WebConst {

    /**
     * 点击次数超过多少更新到数据库
     */
    public static final Integer HIT_EXCEED = 10;
    /**
     * 最大获取文章条数
     */
    public static final Integer MAX_POSTS = 9999;

    /**
     * 最大页码
     */
    public static final Integer MAX_PAGE = 100;

    /**
     * 一些网站配置
     */
    public static Map<String, String> initConfig = new HashMap<>();

    /**
     * session的key
     */
    public static String LOGIN_SESSION_KEY = "login_user";

    public static final String USER_IN_COOKIE = "S_L_ID";

    /**
     * aes加密加盐
     */
    public static String AES_SALT = "0123456789abcdef";

}

